<?php
    header("Cache-Control:no-cache");
    $pageTitle="Промоции жени | Artist Design T-shirts";
    include "includes/header.php";
    include "includes/common.php";

?>
		<!--Content-->
		
		<div id="sale_collection">
		   <br/>
		   <h2>Женска Колекция</h2>
		  <div>
		  <div id="sale_collection_tshirts">

              <?php
              $pageResult = array_rand($pics_women, 12);
              if (isset($pageResult) && $pageResult > 0) {
                  # Обхождане на резултатите
                  foreach ($pics_women as $key => $value) {
                      foreach($pageResult as $value1) {
                          if ((int)$key != (int)$value1) {
                              continue;}
                          echo '<div class="holder_sale_tshirts">
                        <img src="'.$value['loc_small'].'">
                        <h3>'.$value['bg_name'].'</h3>
                        <div class="prices"><span class="old_price">45</span><span class="new_price">30лв.</span></div>
                        <div class="sad"><a href="buypage.php?item='.$key.'"> Детайли </a></div>
                        <span class="sale_pic"><img src="img/sale.png"></span>
                        </div>';
                      }
                  }
              } else echo("Няма добавени снимки");
              ?>
		    
		    
		    </div>
		</div>
		</div>
		
<?php include "includes/footer.php";?>